$(function () {
    resize();
    window.addEventListener("onorientationchange" in window ? "orientationchange" : "resize", function() {
        resize();
    }, false);
});
function resize() {
    var rate = 750 / 100;
    if (window.orientation == 180 || window.orientation == 0) {
        rate = 750 / 100;
    }
    if (window.orientation == 90 || window.orientation == -90) {
        rate = 750 / 100;
    }
    var deviceWidth=0;
    deviceWidth = document.documentElement.clientWidth;
    document.documentElement.style.fontSize = document.documentElement.clientWidth / rate + 'px';
    if (deviceWidth > 750){
        deviceWidth = 750;
        document.documentElement.style.fontSize = deviceWidth / rate + 'px';
    }
    setTimeout(function () {
        deviceWidth = document.documentElement.clientWidth;
        document.documentElement.style.fontSize = document.documentElement.clientWidth / rate + 'px';
        if (deviceWidth > 750){
            deviceWidth = 750;
            document.documentElement.style.fontSize = deviceWidth / rate + 'px';
        }
    },200);
}